#include "page_func.h"
#include "lcd.h"

extern uint8_t btn_1,btn_2,btn_3;
uint8_t last_btn_1,last_btn_2,last_btn_3;

void page_init(void)
{
	last_btn_1 = btn_1;
	last_btn_2 = btn_2;
	last_btn_3 = btn_3;
	
	LCD_BLK_Clr();
	LCD_Fill(0,0,LCD_W,LCD_H,WHITE);
	LCD_ShowString(1,1,"Mode:",BLUE,WHITE,16,0);
	LCD_ShowString(1,20,"ENTER:",BLUE,WHITE,16,0);
	LCD_BLK_Set();
}

void page_change(void)
{
	if(last_btn_1 != btn_1 )
	{
		last_btn_1 = btn_1;
		LCD_BLK_Clr();
		LCD_ShowIntNum(1,50,btn_1,2,RED,WHITE,16);
		LCD_BLK_Set();
	}
	else
		return;
}